//
//  MensaCell.m
//  RegBars
//
//  Created by Huu Nhat on 9/25/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "MensaCell.h"


@implementation MensaCell
@synthesize nameLabel;
@synthesize priceLabel;
@synthesize backgroundImage;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code.
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
	if (selected) 
	{
		[nameLabel setTextColor:[UIColor grayColor]];
		[priceLabel setTextColor:[UIColor grayColor]];
	}
	else 
	{
		[nameLabel setTextColor:[UIColor grayColor]];
		[priceLabel setTextColor:[UIColor grayColor]];
	}
    [self bringSubviewToFront:nameLabel];
	[self bringSubviewToFront:priceLabel];
    // Configure the view for the selected state.
	[super setSelected:selected animated:animated];
}


- (void)dealloc {
	self.nameLabel = nil;
	self.priceLabel = nil;
	self.backgroundImage = nil;
    [super dealloc];
}


@end
